package org.mv.mm.api.data;

import java.util.List;
import org.mv.mm.api.Doc;
import org.mv.mm.api.Fragment;
import org.openide.util.Lookup;

/**
 *
 * @author Martin
 */
public interface IDataProvider {

  Lookup getLookup();

  List<Fragment> getFragments(boolean onlyRoot);
  //List<Fragment> getRootFragments();
  //  List<Fragment> getChildFragments(Fragment frag);
  List<Doc> getDocs();
  
  boolean persistData(boolean forceSave);
}
